import React from 'react';

export default function<P>(Com: any) {

  const WithAuth = (props: P) => {

    return (
      <Com {...props} />
    )
  }

  return WithAuth
}

